home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 1 / GoldFishApril1994_CD2.img / d4xx / d430 / smartfields / docs / keyboard chart < prev    next >
Text File  |  1991-01-11  |  8KB  |  118 lines

  1. KEYBOARD CHART
  2.  
  3.  
  4. This chart displays the codes returned by the console_input() function for
  5. the USA0 keymap.  Use the ci test program to find the values returned by keys
  6. using a different keymap.  The key is from the keyboard, broken into four
  7. sections:  alphabetic characters in alphabetical order, digits in numerical
  8. order (for keys above the alphabetic keypad), punctuation in ASCII order, and
  9. control/function/cursor keys in name order.  The five columns from left to
  10. right contain the codes returned when each key is pressed with no qualifier
  11. key, with the SHIFT key, with the ALT key, with the SHIFT and ALT keys, and
  12. with the CTRL key respectively.  Note that with the console device, the
  13. shifted-CTRL key returns the same as the unshifted-CTRL key, and the
  14. Commodore (left-Amiga) and Amiga (right-Amiga) keys are not monitored.
  15.  
  16. The codes for displayable ASCII characters are shown below in decimal,
  17. hexadecimal, and character formats.  The console_input() function returns the
  18. other keys as flags defined in console/console.h.  Add the CON_ prefix to all
  19. flags listed below.  Many of the control keys are returned as the flag
  20. CON_CONTROL plus the ASCII value of the character (CTRL-A, for example, would
  21. equal CON_CONTROL+'a' = 1000+97 = 1097).  Note that there are some ALT-key
  22. combinations below which produce no input, and CTRL-(hyphen) returns zero.
  23.  
  24.  
  25. KEY            REGULAR      SHIFTED      ALT          ALT-SHIFTED  CTRL
  26. -------------  -----------  -----------  -----------  -----------  -----------
  27. A ...........  097 0x61 a   065 0x41 A   230 0xe6 æ   198 0xc6 Æ   CONTROL+'a'
  28. B ...........  098 0x62 b   066 0x42 B   186 0xba º   186 0xba º   CONTROL+'b'
  29. C ...........  099 0x63 c   067 0x43 C   231 0xe7 ç   199 0xc7 Ç   CONTROL+'c'
  30. D ...........  100 0x64 d   068 0x44 D   240 0xf0 ð   208 0xd0 Ð   CONTROL+'d'
  31. E ...........  101 0x65 e   069 0x45 E   169 0xa9 ©   169 0xa9 ©   CONTROL+'e'
  32. F ...........  102 0x66 f   070 0x46 F   no input     no input     CONTROL+'f'
  33. G ...........  103 0x67 g   071 0x47 G   no input     no input     CONTROL+'g'
  34. H ...........  104 0x68 h   072 0x48 H   no input     no input     BACKSPACE
  35. I ...........  105 0x69 i   073 0x49 I   161 0xa1 ¡   166 0xa6 ¦   TAB
  36. J ...........  106 0x6a j   074 0x4a J   no input     no input     CONTROL+'j'
  37. K ...........  107 0x6b k   075 0x4b K   no input     no input     CONTROL+'k'
  38. L ...........  108 0x6c l   076 0x4c L   163 0xa3 £   163 0xa3 £   CONTROL+'l'
  39. M ...........  109 0x6d m   077 0x4d M   184 0xb8 ¸   191 0xbf ¿   RETURN
  40. N ...........  110 0x6e n   087 0x4e N   173 0xad ­   175 0xaf ¯   CONTROL+'n'
  41. O ...........  111 0x6f o   079 0x4f O   248 0xf8 ø   216 0xd8 Ø   CONTROL+'o'
  42. P ...........  112 0x70 p   080 0x50 P   182 0xb6 ¶   182 0xb6 ¶   CONTROL+'p'
  43. Q ...........  113 0x71 q   081 0x51 Q   229 0xe5 å   197 0xc5 Å   CONTROL+'q'
  44. R ...........  114 0x72 r   082 0x52 R   174 0xae ®   174 0xac ®   CONTROL+'r'
  45. S ...........  115 0x73 s   083 0x53 S   223 0xdf ß   167 0xa7 §   CONTROL+'s'
  46. T ...........  116 0x74 t   084 0x54 T   254 0xfe þ   222 0xde Þ   CONTROL+'t'
  47. U ...........  117 0x75 u   085 0x55 U   181 0xb5 µ   181 0xb5 µ   CONTROL+'u'
  48. V ...........  118 0x76 v   086 0x56 V   170 0xaa ª   170 0xaa ª   CONTROL+'v'
  49. W ...........  119 0x77 w   087 0x57 W   176 0xb0 °   176 0xb0 °   CONTROL+'w'
  50. X ...........  120 0x78 x   088 0x58 X   215 0xd7 ×   247 0xf7 ÷   CONTROL+'x'
  51. Y ...........  121 0x79 y   089 0x59 Y   164 0xa4 ¤   165 0xa5 ¥   CONTROL+'y'
  52. Z ...........  122 0x7a z   090 0x5a Z   177 0xb1 ±   172 0xac ¬   CONTROL+'z'
  53.  
  54. KEY            REGULAR      SHIFTED      ALT          ALT-SHIFTED  CTRL
  55. -------------  -----------  -----------  -----------  -----------  -----------
  56. 1! ..........  049 0x31 1   033 0x21 !   185 0xb9 ¹   033 0x21 !   049 0x31 1
  57. 2@ ..........  050 0x32 2   064 0x40 @   178 0xb2 ²   064 0x40 @   CONTROL+'`'
  58. 3# ..........  051 0x33 3   035 0x23 #   179 0xb3 ³   035 0x23 #   051 0x33 3
  59. 4$ ..........  052 0x34 4   036 0x24 $   162 0xa2 ¢   036 0x24 $   052 0x34 4
  60. 5% ..........  053 0x35 5   037 0x25 %   188 0xbc ¼   037 0x25 %   053 0x35 5
  61. 6^ ..........  054 0x36 6   094 0x5e ^   189 0xbd ½   094 0x5e ^   CONTROL+'~'
  62. 7& ..........  055 0x37 7   038 0x26 &   190 0xbe ¾   038 0x26 &   055 0x37 7
  63. 8* ..........  056 0x38 8   042 0x2a *   183 0xb7 ·   042 0x2a *   056 0x38 8
  64. 9( ..........  057 0x39 9   040 0x28 (   171 0xab «   040 0x28 (   057 0x39 9
  65. 0) ..........  048 0x30 0   041 0x29 )   187 0xbb »   041 0x29 )   048 0x30 0
  66.  
  67. KEY            REGULAR      SHIFTED      ALT          ALT-SHIFTED  CTRL
  68. -------------  -----------  -----------  -----------  -----------  -----------
  69. '" ..........  039 0x27 '   034 0x22 "   039 0x27 '   034 0x22 "   039 0x27 '
  70. ,< ..........  044 0x2c ,   060 0x3c <   044 0x2c ,   060 0x3c <   044 0x2c ,
  71. -_ ..........  045 0x2d -   095 0x5f _   045 0x2d -   095 0x5f _   0 (zero)
  72. .> ..........  046 0x2e .   062 0x3e >   046 0x2e .   062 0x3e >   046 0x2e .
  73. /? ..........  047 0x2f /   063 0x3f ?   047 0x2f /   063 0x3f ?   047 0x2f /
  74. ;: ..........  059 0x3b ;   058 0x3a :   059 0x3b ;   058 0x3a :   059 0x3b ;
  75. =+ ..........  061 0x3d =   043 0x2b +   061 0x3d =   043 0x2b +   061 0x3d =
  76. [{ ..........  091 0x5b [   123 0x7b {   091 0x5b [   123 0x7b {   ESCAPE
  77. \| ..........  092 0x5c \   124 0x7c |   092 0x5c \   124 0x7c |   CONTROL+'|'
  78. ]} ..........  093 0x5d ]   125 0x7d }   093 0x5d ]   125 0x7d }   CONTROL+'}'
  79. `~ ..........  096 0x60 `   126 0x7e ~   096 0x60 `   126 0x7e ~   CONTROL+'`'
  80.  
  81. KEY            REGULAR      SHIFTED      ALT          ALT-SHIFTED  CTRL
  82. -------------  -----------  -----------  -----------  -----------  -----------
  83. BACKSPACE ...  BACKSPACE    BACKSPACE    BACKSPACE    BACKSPACE    BACKSPACE
  84. DEL .........  DELETE       DELETE       DELETE       DELETE       DELETE
  85. DOWN ARROW ..  CURSOR_DOWN  SHIFT_DOWN   CURSOR_DOWN  SHIFT_DOWN   CURSOR_DOWN
  86. ESC .........  ESCAPE       ESCAPE       ALT_ESCAPE   ALT_ESCAPE   ESCAPE
  87. F1 ..........  F1           SHIFT_F1     F1           SHIFT_F1     F1
  88. F2 ..........  F2           SHIFT_F2     F2           SHIFT_F2     F2
  89. F3 ..........  F3           SHIFT_F3     F3           SHIFT_F3     F3
  90. F4 ..........  F4           SHIFT_F4     F4           SHIFT_F4     F4
  91. F5 ..........  F5           SHIFT_F5     F5           SHIFT_F5     F5
  92. F6 ..........  F6           SHIFT_F6     F6           SHIFT_F6     F6
  93. F7 ..........  F7           SHIFT_F7     F7           SHIFT_F7     F7
  94. F8 ..........  F8           SHIFT_F8     F8           SHIFT_F8     F8
  95. F9 ..........  F9           SHIFT_F9     F9           SHIFT_F9     F9
  96. F10 .........  F10          SHIFT_F10    F10          SHIFT_F10    F10
  97. HELP ........  HELP         HELP         HELP         HELP         HELP
  98. LEFT ARROW ..  CURSOR_LEFT  SHIFT_LEFT   CURSOR_LEFT  SHIFT_LEFT   CURSOR_LEFT
  99. RETURN ......  RETURN       RETURN       RETURN       RETURN       CONTROL+'j'
  100. RIGHT ARROW .  CURSOR_RIGHT SHIFT_RIGHT  CURSOR_RIGHT SHIFT_RIGHT  CURSOR_RIGHT
  101. SPACE .......  032 0x20     032 0x20     160 0xa0     160 0xa0     032 0x20
  102. TAB .........  TAB          SHIFT_TAB    TAB          SHIFT_TAB    TAB
  103. UP ARROW ....  CURSOR_UP    SHIFT_UP     CURSOR_UP    SHIFT_UP     CURSOR_UP
  104.  
  105.  
  106. The codes returned by the console device are identical for the Amiga 500,
  107. 1000, and 2000 (to access the special keys in the numeric keypad of the 500
  108. and 2000--the +,-,*,/keys--be sure to use keymap USA1).  For all qualifiers,
  109. all other keys on the numeric keypad return the same code as the REGULAR
  110. codes returned by their counterparts above the alpha keypad.
  111.  
  112.  
  113. Keyboard Chart  01/13/90
  114. © Copyright 1990 Timm Martin
  115. All Rights Reserved Worldwide
  116.  
  117. /*-- END --*/
  118.